package com.bocai.user.model.vo;

import com.bocai.duobao.model.enums.SpendType;
import lombok.Data;
import lombok.Getter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author create by VIC.Huang
 * @date 2018/1/28
 */
@Data
@Accessors(chain = true)
public class SpendRecord implements Serializable {
    private String type;
    private String time;
    private BigDecimal money;

    public String getType() {
        return SpendType.valueOf(this.type).getDescr();
    }
}
